# -*- coding:utf-8 -*-

from django.db import models

class Message(models.Model):
    name = models.CharField('姓名',max_length=30)
    content = models.TextField('内容',max_length=500)
    imagefile = models.ImageField('图片',upload_to = 'screenshots',blank=True,null=True)
    savefile = models.FileField('图片',upload_to = 'savefile',blank=True,null=True)
    time = models.DateTimeField('时间',auto_now_add=True)
    ip = models.CharField(max_length=20,blank=True,null=True)
